package com.petshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.petshop.pojo.Products;
import org.apache.ibatis.annotations.Param;

/**
 * @author 20289
 * @description 针对表【products(存储商品信息)】的数据库操作Mapper
 * @createDate 2025-02-27 11:17:00
 * @Entity com.petshop.pojo.Products
 */
public interface ProductsMapper extends BaseMapper<Products> {

    void updateAddStock(Integer productId, Integer stock);

    void updateReduceStock(@Param("productId") Integer productId, @Param("stock") Integer stock);
}




